package org.dromara.merchants.domain.bo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.merchants.domain.TaCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 公共分类业务对象 ta_category
 *
 * @author xiyin321
 * @date 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TaCategory.class, reverseConvertGenerate = false)
public class TaCategoryBo extends BaseEntity {

    /**
     * 公共分类编号
     */
    @NotNull(message = "公共分类编号不能为空", groups = { EditGroup.class })
    private Long categoryId;

    /**
     * 公共分类名
     */
    @NotBlank(message = "公共分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 公共分类图标
     */
    private Long icon;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;


}
